#include <iostream>
#include <stdint.h>

using namespace std;

class Solution
{
public:
    int hammingWeight(uint32_t n)
    {
        uint32_t x=n;
        int cnt=0;
        while(x!=0)
            {
                if(x%2==1)
                    cnt++;
                x=x/2;
            }
        return cnt;
    }
};


int main()
{
    Solution s;
    int a;
    while(true)
        {
            cin>>a;
            if(a==-1)
                break;
            cout<<a<<":"<<s.hammingWeight(a)<<endl;
        }
}